/*    */ package com.newcrm.webapi.sub;
/*    */ 
/*    */ import com.newcrm.bean.User;
/*    */ import com.newcrm.exception.NotFoundException;
/*    */ import com.newcrm.webapi.AbstractAction;
/*    */ import com.newcrm.webapi.AbstractHttpServlet;
/*    */ import java.io.IOException;
/*    */ import javax.servlet.RequestDispatcher;
/*    */ import javax.servlet.ServletException;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ 
/*    */ public class ConfirmDestroyImport extends AbstractAction
/*    */ {
/* 16 */   public String id = null;
/*    */ 
/*    */   public ConfirmDestroyImport(AbstractHttpServlet servlet) {
/* 19 */     super(servlet);
/*    */   }
/*    */ 
/*    */   public ConfirmDestroyImport(AbstractHttpServlet servlet, String id) {
/* 23 */     super(servlet);
/* 24 */     this.id = id;
/*    */   }
/*    */ 
/*    */   public void parse(HttpServletRequest request, HttpServletResponse response)
/*    */     throws IOException, ServletException, NotFoundException
/*    */   {
/* 30 */     User user = super.getLoginUser(request);
/* 31 */     if (!user.isCanDelete()) {
/* 32 */       response.sendRedirect(request.getContextPath() + 
/* 33 */         "/nopermission.jsp");
/* 34 */       return;
/*    */     }
/* 36 */     request.setAttribute("importId", this.id);
/* 37 */     request.getRequestDispatcher("/import_confirm_destroy.jsp").forward(
/* 38 */       request, response);
/*    */   }
/*    */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.webapi.sub.ConfirmDestroyImport
 * JD-Core Version:    0.6.1
 */